<style type="text/css" scoped="scoped">
    .dictionaryTree {
    }

    .dictionaryTree [class^="icon-"] {
        margin-left: 5px;
        font-size: 0.8em;
    }

    .dictionaryTree .icon-close {
        color: #FF6347;
    }

    .dictionaryTree .dictionaryName {
        cursor: pointer;
        line-height: 20px;
    }
</style>
<script type="text/javascript">
    $(document).ready(function (e) {
    });
    function dictionaryRemove(id) {
        if (confirm('确定要删除吗？')) {
            LC.S.remove([{name: 'id', value: id}], LC.S.fleshList);
        }
    }
</script>
<div class="panel panel-default">
    <div class="panel-heading">字典管理</div>
    <div class="panel-body dictionaryTree">
    <#list dictionarys as m>
        <div id="${m._id}" pid="${m.parentId!"dictionary_0"}">
        <span class="dictionaryName" title="${m.notes!"点击查看详情"}" onClick="LC.S.detail('${m._id}')">
            <span class="badge">${m._id}</span>
            <span class="name">${m.title}</span>
        </span>
            <span class="icon-close" title="删除字典" onClick="dictionaryRemove('${m._id}')"></span>
        </div>
    </#list>
    </div>
</div>